<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">
<meta name="author" content="ThinkCMF">
<tc_include file="Public:head" />
</head>
<body class="body-white" id="top">
	<tc_include file="Public:nav" />

		<div class="container tc-main">
                <div class="row">
                    <div class="span3">
	                    <tc_include file="Public:usernav"/>
                    </div>
                    <div class="span9">
                           <div class="tabs">
                               <ul class="nav nav-tabs">
                                   <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-lock"></i> 添加银行卡</a></li>
                               </ul>
                               <div class="tab-content">
                                   <div class="tab-pane active" id="one">
                                   		<form class="form-horizontal J_ajaxForm" action="{:u('User/Money/add')}" method="post">
                                   			<div class="control-group">
                                   				<label class="control-label" for="input-old_password">开户名</label>
                                   				<div class="controls">
                                   					<input type="text "  placeholder="真实姓名" name="real_name">
                                   				</div>
                                   			</div>
                                   			<div class="control-group">
                                   				<label class="control-label" for="input-password">帐户类型：</label>
                                   				<div class="controls">
                                   					借记卡  <span class="f_red">(不支持信用卡)</span>
                                   				</div>
                                   			</div>
                                   			<div class="control-group">
                                   				<label class="control-label" for="input-repassword">选择银行</label>
                                   				<div class="controls">
                                   						<select id="Jbank_bank_id" name="bank_name">
													<option value="">请选择</option>
													<option value="中国工商银行">中国工商银行</option>
													<option value="中国农业银行">中国农业银行</option>
													<option value="中国建设银行">中国建设银行</option>
													<option value="招商银行">招商银行</option>
													<option value="中国光大银行">中国光大银行</option>
													<option value="中国邮政储蓄银行">中国邮政储蓄银行</option>
													<option value="兴业银行">兴业银行</option>
													<option value="中国银行">中国银行</option>
													<option value="交通银行">交通银行</option>
													<option value="中信银行">中信银行</option>
													<option value="华夏银行">华夏银行</option>
													<option value="上海浦东发展银行">上海浦东发展银行</option>
													<option value="城市信用社">城市信用社</option>
													<option value="恒丰银行">恒丰银行</option>
													<option value="广东发展银行">广东发展银行</option>
													<option value="深圳发展银行">深圳发展银行</option>
													<option value="中国民生银行">中国民生银行</option>
													<option value="中国农业发展银行">中国农业发展银行</option>
													<option value="农村商业银行">农村商业银行</option>
													<option value="农村信用社">农村信用社</option>
													<option value="城市商业银行">城市商业银行</option>
													<option value="农村合作银行">农村合作银行</option>
													<option value="浙商银行">浙商银行</option>
													<option value="上海农商银行">上海农商银行</option>
													<option value="中国进出口银行">中国进出口银行</option>
													<option value="渤海银行">渤海银行</option>
													<option value="国家开发银行">国家开发银行</option>
													<option value="村镇银行">村镇银行</option>
													<option value="徽商银行股份有限公司">徽商银行股份有限公司</option>
													<option value="南洋商业银行">南洋商业银行</option>
													<option value="韩亚银行">韩亚银行</option>
													<option value="花旗银行">花旗银行</option>
													<option value="渣打银行">渣打银行</option>
													<option value="华一银行">华一银行</option>
													<option value="东亚银行">东亚银行</option>
													<option value="苏格兰皇家银行">苏格兰皇家银行</option>
													</select>
                                   				</div>
                                   			</div>
											
											<div class="control-group">
                                   				<label class="control-label" for="input-password">开户行所在地</label>
                                   				<div class="controls">
                                   					<select class="input span2" id="s_province" name="s_province">
                                   						<option>请选择省份</option>
														
                                   					</select>
													&nbsp;&nbsp;
								    				<select class="input span2" id="s_city" name="s_city" >
								    					<option>请选择城市</option>
														
								    				</select>
													&nbsp;&nbsp;
								    				<select class="input span2" id="s_county" name="s_county">
								    						<option>请选择县区</option>
														
								    				</select>
                                   				</div>
                                   			</div>
											
											<div class="control-group">
                                   				<label class="control-label" for="input-password">开户行网点</label>
                                   				<div class="controls">
													<input id="Jbank_bankzone" class="f-input span3" type="text" value=""  name="bankzone">
													<a target="_blank" href="http://www.cardbaobao.com/bank/index.asp">网点查询</a>
												</div>
                                   			</div>
											<div class="control-group">
                                   				<label class="control-label" for="input-password">银行卡号</label>
                                   				<div class="controls">
											<input id="Jbank_bankcard" class="f-input span3" type="text" value="" font-weight: bolder; ime-mode: disabled; border-width: 1px; color: rgb(0, 0, 0);" name="bankcard" maxlength="25">
												</div>
                                   			</div>
											
											
                                   			<div class="control-group">
                                   				<div class="controls">
                                   					<button type="submit" class="btn J_ajax_submit_btn sub_btn">保存</button>
                                   				</div>
                                   			</div>
                                   		</form>
                                   </div>
                               </div>							
                           </div>
                    </div>
                </div>

		<tc_include file="Public:footer" />

	</div>
	<!-- /container -->

	<tc_include file="Public:scripts" />
	<script type="text/javascript">
	jQuery(function(){
		
		var s_province=$("#s_province");
		var s_city=$("#s_city");
		var s_county=$("#s_county");
		
		ajax({"obj":s_province,"fup":"0"});
		s_province.change(function(){
				ajax({"obj":s_city,"fup":$(this).val()});
		});
		s_city.change(function(){
			ajax({"obj":s_county,"fup":$(this).val()});
		
		});
		
				
		function ajax(query){
			var posturl = "{:U('user/money/area')}";
			$.ajax({
				url: posturl,
				data: "fup="+query.fup,
				type: "post",
				dataType: "json",
				success: function(result){
					if (result.status == 1) {
						
							query.obj.html(query.obj.find("option").eq(0));
							query.obj.append(result.info);
					}
					else {
						$.showErr(result.info);
					}
				},
				error: function(){
					$.showErr("发生错误");
				}
			});
		}
	
	});

</script>
	
	
	
</body>
</html>